<?php

namespace App\Http\Models;

class MarketTypeModel
{
    //营销类型
    const TYPE_RAFFLE   = 0;    //  抽奖
    const TYPE_EXCHANGE = 1;    //  奖券
    const TYPE_RANK     = 2;    //  排行榜
    const TYPE_NONE     = 3;    //  无
    const TYPE_ENTRY    = 4;    //  报名表单
    const TYPE_PPT      = 5;    //  PPT
    const TYPE_CARD     = 6;    //  企业名片
    const TYPE_CROWD    = 7;    //  众筹一奖券
    const TYPE_VOTE     = 8;    //  投票
    const TYPE_CROWD_RAFFLE       = 9;  //  众筹2 抽奖
    const TYPE_CROWD_EXCHANGE     = 10; //  众筹2 奖券
    const TYPE_COUPON   = 11;
    const TYPE_RAFFLE_THIRD      = 12;//第三方发奖
    const TYPE_RAFFLE_THIRD_ZC   = 13;//第三方发奖(众筹)
    const TYPE_VOTEBAOMING   = 14;   //  投票报名
    const TYPE_VOTERANK      = 15;   //  投票排行榜
    const TYPE_RAFFLE_SIGNED_RAFFLE     = 16;//签到抽奖
    const TYPE_RAFFLE_SIGNED_EXCHANGE   = 17;//签到奖券
    const TYPE_CROWD1_RAFFLE = 18;      //  众筹一抽奖
    const TYPE_CROWD1_THIRD  = 19;  //  众筹一第三方

    const TYPE_REDPACK  = 20;    //  微信红包
    const TYPE_INDIANA = 21; //幸运夺宝

    private static $_marketType = array(
            self::TYPE_RAFFLE,
            self::TYPE_EXCHANGE,
            self::TYPE_RANK,
            self::TYPE_NONE,
            self::TYPE_ENTRY,
            self::TYPE_PPT,
            self::TYPE_CARD,
            self::TYPE_CROWD,
            self::TYPE_VOTE,
            self::TYPE_CROWD_RAFFLE,
            self::TYPE_CROWD_EXCHANGE,
            self::TYPE_COUPON,
            self::TYPE_VOTEBAOMING,
            self::TYPE_VOTERANK,
            self::TYPE_RAFFLE_SIGNED_RAFFLE,

            self::TYPE_RAFFLE_SIGNED_EXCHANGE,
            self::TYPE_RAFFLE_THIRD_ZC,
            self::TYPE_RAFFLE_THIRD,
            self::TYPE_CROWD1_RAFFLE,
            self::TYPE_CROWD1_THIRD,
            self::TYPE_REDPACK,
            self::TYPE_INDIANA
    );

    private static $_marketTypeName = array(
            self::TYPE_RAFFLE  => 'raffle',
            self::TYPE_EXCHANGE=> 'exchange',
            self::TYPE_RANK    => 'rank',
            self::TYPE_NONE    => 'share',
            self::TYPE_ENTRY   => 'entry',
            self::TYPE_PPT  => 'ppt',
            self::TYPE_CARD => 'card',
            self::TYPE_CROWD => 'crowd',
            self::TYPE_VOTE => 'vote',
            self::TYPE_CROWD_RAFFLE => 'crowdraffle',
            self::TYPE_CROWD_EXCHANGE => 'crowdexchange',
            self::TYPE_RAFFLE_SIGNED_RAFFLE => 'signedraffle',
            self::TYPE_RAFFLE_SIGNED_EXCHANGE => 'signedexchange',
            self::TYPE_RAFFLE_THIRD_ZC => 'thirdzc',
            self::TYPE_RAFFLE_THIRD => 'third',
            self::TYPE_COUPON    => 'coupon',
            self::TYPE_VOTEBAOMING => 'votebaoming',
            self::TYPE_VOTERANK    => 'voterank',
            self::TYPE_CROWD1_RAFFLE => 'crowd1raffle',
            self::TYPE_CROWD1_THIRD => 'crowd1third',
            self::TYPE_REDPACK => 'redpack',
            self::TYPE_INDIANA => 'indiana'

    );

    private static $_marketMap = array(
            self::TYPE_RAFFLE  => self::TYPE_RAFFLE,
            self::TYPE_EXCHANGE=> self::TYPE_RAFFLE,
            self::TYPE_RANK    => self::TYPE_RANK ,
            self::TYPE_NONE    => self::TYPE_NONE,
            self::TYPE_ENTRY   => self::TYPE_ENTRY,
            self::TYPE_PPT     => self::TYPE_PPT,
            self::TYPE_CARD    => self::TYPE_CARD,
            self::TYPE_CROWD   => self::TYPE_CROWD,
            self::TYPE_VOTE    => self::TYPE_VOTE,
            self::TYPE_CROWD_RAFFLE    => self::TYPE_CROWD_RAFFLE ,
            self::TYPE_CROWD_EXCHANGE  => self::TYPE_CROWD_RAFFLE,
            self::TYPE_RAFFLE_SIGNED_RAFFLE    => self::TYPE_RAFFLE,
            self::TYPE_RAFFLE_SIGNED_EXCHANGE  => self::TYPE_RAFFLE,
            self::TYPE_RAFFLE_THIRD_ZC => self::TYPE_CROWD_RAFFLE,
            self::TYPE_RAFFLE_THIRD    => self::TYPE_RAFFLE,
            self::TYPE_COUPON      => self::TYPE_COUPON,
            self::TYPE_VOTEBAOMING => self::TYPE_VOTEBAOMING,
            self::TYPE_VOTERANK    => self::TYPE_VOTERANK,
            self::TYPE_CROWD1_RAFFLE => self::TYPE_CROWD,
            self::TYPE_CROWD1_THIRD => self::TYPE_CROWD,
            self::TYPE_REDPACK => self::TYPE_RAFFLE,
            self::TYPE_INDIANA => self::TYPE_INDIANA,

    );
}
